﻿<%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="Them_SuaXoa_LoaiDT.aspx.cs" Inherits="Them_SuaXoa_LoaiDT" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp; Thêm - Sửa - Xóa Loại Điện Thoại</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
      <div style="text-align: center;min-height:500px ">
      <table style="width:400px" align="center">
            <tr>
                <td>
                    Mã loại điện thoại:</td>
                <td>
                    <asp:TextBox ID="txtmaloai" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Tên loại điện thoại:</td>
                <td>
                    <asp:TextBox ID="txttenloai" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: right">
                    <asp:Button ID="Button1" runat="server" Text="Lưu" 
                        onclick="btnthem_Click" />
                    &nbsp;
                    <asp:Button ID="Button2" runat="server" Text="Làm Lại" 
                        onclick="Button2_Click" />
                    <br />
                </td>
            </tr>
            <tr>
                <td colspan="2">             
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="maloai" onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                        onrowupdating="GridView1_RowUpdating" AllowPaging="True" 
                        AllowSorting="True" BackColor="#CCCCCC" BorderColor="#999999" 
                        BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" 
                        ForeColor="Black" onpageindexchanging="GridView1_PageIndexChanging" 
                        PageSize="7" Width="400px">
                        <RowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="maloai" HeaderText="MaLoai" />
                            <asp:BoundField DataField="tenloai" HeaderText="TenLoai" />
                            <asp:CommandField ShowEditButton="True" />
                            <asp:CommandField ShowDeleteButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#CCCCCC" />
                        <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                    
                </td>
            </tr>
        </table>
            </div>
           
            </asp:Content>
